import { Module } from '@nestjs/common';
import { ArticeService } from './artice.service';
import { ArticeController } from './artice.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { ArticeSchema } from '../schema/artice.schema';

@Module({
  imports:[
    MongooseModule.forFeature([{name:'artice',schema:ArticeSchema,collection:'artice'}])
  ],
  providers: [ArticeService],
  controllers: [ArticeController]
})
export class ArticeModule {}
